package mx.netbrain.dao.impl;

import java.util.List;

import org.hibernate.Session;

import mx.netbrain.dao.TypeFieldDao;
import mx.netbrain.model.TypeField;
import mx.netbrain.util.HibernateUtil;

public class TypeFieldDaoImpl implements TypeFieldDao {

	@SuppressWarnings("unchecked")
	@Override
	public List<TypeField> listAll() {
		Session session = HibernateUtil.getSessionFactory().openSession();
		return session.createQuery("from TypeField as typeField").list();
	}

}
